package com.forum.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.forum.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassNameUserTab
 * @Author Lenovo
 * @Date 2023/11/13 16:22
 */
@Data
@ApiModel(description = "用户实体")
@TableName("usertab")
public class UserTabEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    @ApiModelProperty(value = "用户名")
    private String UserName;

    /** 密码 */
    @Excel(name = "密码")
    @ApiModelProperty(value = "密码")
    private String Password;

    /** 角色 */
    @Excel(name = "角色")
    @ApiModelProperty(value = "角色")
    private String Role;

    /** 角色 */
    @Excel(name = "手机号码")
    @ApiModelProperty(value = "手机号码")
    private String PhoneNum;

    /** 新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新增时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "新增时间")
    private Date Addtime;
}
